﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;

namespace DFGK_WMS.Model.Models
{
    /// <summary>
    /// 上架单
    /// </summary>
    [SqlSugar.SugarTable(TableName = "TPutawayOrders")]
    public partial class TPutawayOrder
    {
        /// <summary>
        /// 上架单Id
        /// </summary>
        [SqlSugar.SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }
        /// <summary>
        /// 上架单号
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 对应收货单明细Id
        /// </summary>
        public int? RelatedOrderDetailId { get; set; }
        /// <summary>
        /// 单据类型
        /// </summary>
        public int? BillType { get; set; }
        /// <summary>
        /// 垛存储信息Id
        /// </summary>
        public int StackingStorageId { get; set; }
        /// <summary>
        /// 托盘条码
        /// </summary>
        public string PalletBarcode { get; set; }
        /// <summary>
        /// 站点编码
        /// </summary>
        public string SiteCode { get; set; }

        /// <summary>
        /// 巷道
        /// </summary>
        public string Roadway { get; set; }
        /// <summary>
        /// 仓位编码
        /// </summary>
        public string LocationCode { get; set; }
        /// <summary>
        /// 仓位深度
        /// </summary>
        public int? LocationDepth { get; set; }
        public DateTime? Fifodate { get; set; }
        /// <summary>
        /// 状态：1-创建；2-已确定；3-审核成功；4-上架中；5-已完成；
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 体积
        /// </summary>
        public int? Volume { get; set; }
        /// <summary>
        /// 重量
        /// </summary>
        public int? Weight { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        [Column(TypeName = "decimal(18,2)")]
        public decimal? Qty { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateDate { get; set; }
        /// <summary>
        /// 创建人Id
        /// </summary>
        public int? CreateUserId { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateUserName { get; set; }
        /// <summary>
        /// 物料Id
        /// </summary>
        public int? MaterialId { get; set; }
        /// <summary>
        /// 物料号
        /// </summary>
        public string MaterialCode { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// 货主Id
        /// </summary>
        public int? OwnerId { get; set; }
        /// <summary>
        /// 货主名称
        /// </summary>
        public string OwnerName { get; set; }
        /// <summary>
        /// 物料关键字Id
        /// </summary>
        public int? MaterialKeyId { get; set; }
        /// <summary>
        /// 批次号
        /// </summary>
        public string BatchNo { get; set; }

        /// <summary>
        /// 小批次号
        /// </summary>
        public string SmallBatchNo { get; set; }
        /// <summary>
        /// 来源分类： 1-入库；2-出库；3-移库；4-盘点
        /// </summary>
        public int? SourceType { get; set; }
        public string? ParentPalletBarcode { get; set; }
    }
}
